package interface1;

public class PortablePlayer implements Player,Skinnable{
    private int skin=LEOPARD;
    public PortablePlayer(){}
    @Override
    public void play() {
        System.out.println("播放开始");
    }

    @Override
    public void stop() {
        System.out.println("播放结束");
    }

    @Override
    public void changeSkin(int skin) {
        System.out.print("皮肤换成了");
        switch (skin){
            case BLACK:
                System.out.print("黑色");break;
            case RED:System.out.print("红色");break;
            case GREEN:System.out.print("绿色");break;
            case BLUE:System.out.print("蓝色");break;
            case LEOPARD:System.out.print("豹纹");break;
            default:
                System.out.println("素色");break;
        }
        System.out.println(".");
    }
}
class Tester2{
    public static void main(String[] args) {
        PortablePlayer wangYi=new PortablePlayer();
        wangYi.play();
        wangYi.stop();
        wangYi.changeSkin(Skinnable.BLUE);
    }
}
